package com.zyh.zhukang.productdetails.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

/**
 * 作者:zhuyunhao
 * 时间:2020/1/15 0015 10:59
 */
//@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
    //上面注解可以解决对象转换成json格式报错问题
public class ProductInfo {
    private Integer productId;//商品编号
    private String productDesc;//商品描述(相当于商品的标题)
    private Integer productEat;//商品是否是外用还是口服(0外用,1口服)
    private Integer productType;//是否是处方药(0非处方药,1处方药)
    private Double productBasePrice;//商品划线价格
    private Double productPrice;//商品会员价格
    private String productName;//通用名
    private String productSFDA;//国药准字号
    private String productFactory;//生产企业
    private String productImg1;//图片1
    private String productImg2;//图片2
    private String productImg3;//图片3
    private String productImg4;//图片4
    private String productImg5;//图片5
    private Integer productNum;//商品库存
    private String copyDesc;//商品文案,多对一文案表
    //private String sku_num;//满赠套餐中的满赠数量(以,号隔开)
    //private String standardId1;//所赠送对应的规格的商品id(以,号隔开)
    private List<Sku> sku;//一个商品对应的多种疗程集合
    private List<Standard> standard;//一个商品对应的所有规格集合

    public ProductInfo() {
    }

    public ProductInfo(Integer productId, String productDesc, Integer productEat, Integer productType, Double productBasePrice, Double productPrice, String productName, String productSFDA, String productFactory, String productImg1, String productImg2, String productImg3, String productImg4, String productImg5, Integer productNum, String copyDesc, List<Sku> sku, List<Standard> standard) {
        this.productId = productId;
        this.productDesc = productDesc;
        this.productEat = productEat;
        this.productType = productType;
        this.productBasePrice = productBasePrice;
        this.productPrice = productPrice;
        this.productName = productName;
        this.productSFDA = productSFDA;
        this.productFactory = productFactory;
        this.productImg1 = productImg1;
        this.productImg2 = productImg2;
        this.productImg3 = productImg3;
        this.productImg4 = productImg4;
        this.productImg5 = productImg5;
        this.productNum = productNum;
        this.copyDesc = copyDesc;
        this.sku = sku;
        this.standard = standard;
    }

    @Override
    public String toString() {
        return "ProductInfo{" +
                "productId=" + productId +
                ", productDesc='" + productDesc + '\'' +
                ", productEat=" + productEat +
                ", productType=" + productType +
                ", productBasePrice=" + productBasePrice +
                ", productPrice=" + productPrice +
                ", productName='" + productName + '\'' +
                ", productSFDA='" + productSFDA + '\'' +
                ", productFactory='" + productFactory + '\'' +
                ", productImg1='" + productImg1 + '\'' +
                ", productImg2='" + productImg2 + '\'' +
                ", productImg3='" + productImg3 + '\'' +
                ", productImg4='" + productImg4 + '\'' +
                ", productImg5='" + productImg5 + '\'' +
                ", productNum=" + productNum +
                ", copyDesc='" + copyDesc + '\'' +
                ", sku=" + sku +
                ", standard=" + standard +
                '}';
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public Integer getProductEat() {
        return productEat;
    }

    public void setProductEat(Integer productEat) {
        this.productEat = productEat;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Double getProductBasePrice() {
        return productBasePrice;
    }

    public void setProductBasePrice(Double productBasePrice) {
        this.productBasePrice = productBasePrice;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductSFDA() {
        return productSFDA;
    }

    public void setProductSFDA(String productSFDA) {
        this.productSFDA = productSFDA;
    }

    public String getProductFactory() {
        return productFactory;
    }

    public void setProductFactory(String productFactory) {
        this.productFactory = productFactory;
    }

    public String getProductImg1() {
        return productImg1;
    }

    public void setProductImg1(String productImg1) {
        this.productImg1 = productImg1;
    }

    public String getProductImg2() {
        return productImg2;
    }

    public void setProductImg2(String productImg2) {
        this.productImg2 = productImg2;
    }

    public String getProductImg3() {
        return productImg3;
    }

    public void setProductImg3(String productImg3) {
        this.productImg3 = productImg3;
    }

    public String getProductImg4() {
        return productImg4;
    }

    public void setProductImg4(String productImg4) {
        this.productImg4 = productImg4;
    }

    public String getProductImg5() {
        return productImg5;
    }

    public void setProductImg5(String productImg5) {
        this.productImg5 = productImg5;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public String getCopyDesc() {
        return copyDesc;
    }

    public void setCopyDesc(String copyDesc) {
        this.copyDesc = copyDesc;
    }

    public List<Sku> getSku() {
        return sku;
    }

    public void setSku(List<Sku> sku) {
        this.sku = sku;
    }

    public List<Standard> getStandard() {
        return standard;
    }

    public void setStandard(List<Standard> standard) {
        this.standard = standard;
    }
}
